<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

//Route::middleware('auth:api')->get('/user', function (Request $request) {
//    return $request->user();
//});

Route::post('/order_shirt', 'Api\OrderShirtController@store');
Route::post('/order_payment', 'Api\OrderShirtController@createPayment');
Route::post('/payment_action', 'Api\OrderShirtController@paymentAction');
Route::post('/search', 'Api\OrderShirtController@search');

Route::post('/wx_login', 'Api\WechatController@miniLogin');
Route::post('/check_login', 'Api\WechatController@checkToken');
